package com.bage.common.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

@Data
@Configuration
@ConfigurationProperties(prefix = "ali")
public class AliProperties {

    private String accessKeyId;

    private String accessKeySecret;

    private AliSmsConfig sms;

    @Data
    public static class AliSmsConfig {

        // 是否启用
        private Boolean enable;

        // 区域
        private String region;

        // 端点
        private String endpoint;
    }
}
